package function;

import java.awt.Graphics;
import java.awt.Toolkit;
import java.awt.image.ImageObserver;

import dialog.AddBuilding;
import panel.Window;

public class Menu implements Function {
	
	/*Panel*/
	Window window;
	
	public Menu(Window window){
		this.window = window;
	}
	
	public void draw(Graphics bufferG, Toolkit winTool, ImageObserver ob){

		bufferG.drawImage(winTool.getImage(".\\Images\\Main_MenuSimpleButton.png"), 98, 208, ob);
		for(int i=0;i<4;i++)
		bufferG.drawImage(winTool.getImage(".\\Images\\Main_MenuButton"+window.getStateButtonMenu(i)+".png"), -12, 180+60*i, ob);
	}
	
	public void addBuilding(){
		new AddBuilding(window.getMain(), 460, window.getFileManagement());
	}
	
	public void editBuilding(){
	
	}
	
	public void deleteBuilding(){

	}
}
